package com.hsd.entity;

import java.util.List;

public class User {
    private String name;
    private String sex;
    private Integer age;
    private Book book;
    private List<String> hobbies;

    public User() {
    }

    public User(String name, String sex, Integer age, Book book, List<String> hobbies) {
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.book = book;
        this.hobbies = hobbies;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Book getBook() {
        return book;
    }

    public void setBook(Book book) {
        this.book = book;
    }

    public List<String> getHobbies() {
        return hobbies;
    }

    public void setHobbies(List<String> hobbies) {
        this.hobbies = hobbies;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", book=" + book +
                ", hobbies=" + hobbies +
                '}';
    }
}
